package com.laicunba.service.profit;

import java.math.BigDecimal;

import com.laicunba.service.profit.CunPiaoBaoProfitService.CurrentProfitAndPrincipal;
import com.laicunba.service.profit.SuiCunBaoProfitService.MergedProfitResult;

public interface SuiCunBaoProfitService {
	class MergedProfitResult {
		private BigDecimal principal;
		private BigDecimal dayProfit; // 当日收益
		private BigDecimal totalProfit;
		private BigDecimal withdrawProfit;

		public void setWithdrawProfit(BigDecimal withdrawProfit) {
			this.withdrawProfit = withdrawProfit;
		}

		public BigDecimal getWithdrawProfit() {
			return withdrawProfit;
		}

		public BigDecimal getPrincipal() {
			return principal;
		}

		public BigDecimal getTotalProfit() {
			return totalProfit;
		}

		public void setPrincipal(BigDecimal principal) {
			this.principal = principal;
		}

		public void setTotalProfit(BigDecimal totalProfit) {
			this.totalProfit = totalProfit;
		}

		public BigDecimal getDayProfit() {
			return dayProfit;
		}

		public void setDayProfit(BigDecimal dayProfit) {
			this.dayProfit = dayProfit;
		}

	}

	MergedProfitResult getMergedProfit(String userId);
	
	class CurrentProfitAndPrincipal {
		private BigDecimal currentProfit;
		private BigDecimal currentPrincipal;

		public BigDecimal getCurrentProfit() {
			return currentProfit;
		}

		public void setCurrentProfit(BigDecimal currentProfit) {
			this.currentProfit = currentProfit;
		}

		public BigDecimal getCurrentPrincipal() {
			return currentPrincipal;
		}

		public void setCurrentPrincipal(BigDecimal currentPrincipal) {
			this.currentPrincipal = currentPrincipal;
		}
	}
	
	CurrentProfitAndPrincipal currentProfitAndPrincipal(String userId);
}
